package org.fund.common.constant;

/**
 * @Author Moro
 * @Date 2022/3/15 2:06
 * @title ErrorCode
 */
public enum ErrorCode {
    FUND_NOT_EXISTS(21003,"基金不存在"),
    FUND_IS_EXISTS(21004,"基金已存在"),
    FUND_EXISTS(21005,"基金已存在,请选择买入等操作"),
    SERVER_ERROR(21006,"服务异常"),
    SALE_AMOUNT_MORE_THAN_HOLD_AMOUNT(21007,"卖出份额大于持有份额");

    private int code;
    private String description;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    ErrorCode(int code, String description) {
        this.code = code;
        this.description = description;
    }

}
